<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>查看特殊产品</title>
<link href="${ctxPath}/style/info.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="${ctxPath}/style/base/jquery.ui.all.css" rel="stylesheet" />
<link type="text/css" href="${ctxPath}/style/demos.css" rel="stylesheet" />

    <script type="text/javascript">
	$(function() {
		applyDate("datepicker1");
		applyDate("datepicker");

	});

	</script>
<script language="javascript">
function tabs(n)
{
var len = 4;
for (var i = 1; i <= len; i++)
{
document.getElementById('tab_a' + i).style.display = (i == n) ? 'block' : 'none';
document.getElementById('_' + i).style.display = (i == n) ? 'inline' : 'none';
}
}
function cl(n)
{
var len = 4;
for (var i = 1; i <= len; i++)
{
document.getElementById('tab_a' + i).style.display = (i == n) ? 'none' : 'none';
document.getElementById('_' + i).style.display = (i == n) ? 'none' : 'none';
}
}
function czopen(){   
            document.getElementById("check_see").style.display="block" ;}	
function czclose(){   
            document.getElementById("check_see").style.display="none" ;}	
</script>

</head>

<body>
<!--内容-->
<div id="info">
<div id="hz">
 
<span class="take_time">出票日期：${order.createTime}</span>
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
          <tr>
		  	<td class="tabletitle center" rowspan="2">订单号</td>
            <td class="tabletitle center" rowspan="2">乘机人</td>
			<td class="tabletitle center" rowspan="2">乘机人类型</td>
            <td class="tabletitle center" rowspan="2">起飞时间</td>
			<td class="tabletitle center" rowspan="2">PNR</td>
            <td class="tabletitle center"  rowspan="2">票号</td>
			<td class="tabletitle center" rowspan="2">航班号</td>
            <td class="tabletitle center" rowspan="2">舱位</td>
			<td class="tabletitle center" rowspan="2">票面价</td>
			<td class="tabletitle center" rowspan="2">燃油费</td>
            <td class="tabletitle center" rowspan="2">机建费</td>
            <td class="tabletitle center" rowspan="2">机票实收款</td>
            <td class="tabletitle center" rowspan="2">税费总计</td>
            <td class="tabletitle center" rowspan="2">返点</td>
            <td class="tabletitle center" rowspan="2">留钱</td>
            <td class="tabletitlelast center" rowspan="2">成本价</td>			
          </tr>
		  <tr>
		    
		  </tr>
           <tr>
		  	<td class="tableinfo center">
            ${order.orderNo }
          	</td>
            <td class="tableinfo center">
            <c:forEach var="passenger" items="${order.passengers}">
							${passenger.name}<br />
			</c:forEach>&nbsp;
			</td>
			<td class="tableinfo center">
				<c:forEach var="passenger" items="${order.passengers}">
				<c:if test="${passenger.ageType=='1'}">成人</c:if>
				<c:if test="${passenger.ageType=='2'}">儿童</c:if><br />
				</c:forEach>&nbsp;
			</td>
			<td class="tableinfo center">
				<c:forEach var="flight" items="${order.flights}">
							${flight.depDay}<br />
				</c:forEach>&nbsp;
			</td>
			<td class="tableinfo center">&nbsp;${order.pnr }</td>
			<td class="tableinfo center">
				<c:forEach var="passenger" items="${order.passengers}">
							${passenger.eticketNum}<br />
				</c:forEach>&nbsp;
			</td>
            <td class="tableinfo center">
					<c:forEach var="flight" items="${order.flights}">
							${flight.code}<br />
					</c:forEach>&nbsp;
			</td>
            <td class="tableinfo center">
					<c:forEach var="flight" items="${order.flights}">
							${flight.cabin}<br />
					</c:forEach>&nbsp;
			</td>
			<c:set var="txtPrice" value="0" />
            <td class="tableinfo center">${order.viewPrice }
            <c:set var="txtPrice" value="${order.viewPrice  }" />
            </td>
            <td class="tableinfo center">
				<c:forEach var="passenger" items="${order.passengers}">
							${passenger.fuelTax}<br />
							<c:if test="${not empty passenger.fuelTax}">
							<c:set var="txtPrice" value="${txtPrice+passenger.fuelTax  }" />
							</c:if>
				</c:forEach>&nbsp;
			</td>
            <td class="tableinfo center">
				<c:forEach var="passenger" items="${order.passengers}">
							${passenger.constructionFee}<br />
							<c:if test="${not empty passenger.constructionFee}">
							<c:set var="txtPrice" value="${txtPrice+passenger.constructionFee  }" />
							</c:if>
				</c:forEach>&nbsp;
			</td>
            <td class="tableinfo center">￥${txtPrice }</td>
            <td class="tableinfo center">￥${order.taxStatistics }</td>
            <td class="tableinfo center">￥${order.policy.returnPoint}</td>
            <td class="tableinfo center">￥${order.policy.returnPrice}</td>
            <td class="tableinfolast center">￥${order.policy.costPrice}</td>
          </tr>
		  
        </table>
        <a href="${ctxPath}/admin/order/report.do?cmd=tscpReport" style="font-size:14px; color:#F00; float:right; margin-top:5px">返回</a>
        <div id="clear"></div>
</div><!--浮层结束-->
</div>
	
</body>
</html>